/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.DTO;

import Server.BUS.StringUlti;

/**
 *
 * @author Trung
 */
public class SelectNoWhereQuery extends SelectQuery {
    public SelectNoWhereQuery()
    {
        super();        
    }
    
    public SelectNoWhereQuery(String _queryString)
    {
        this.keyWord = "SELECT_NOWHERE";
        this.queryString = StringUlti.formatString(_queryString);
        
        int begin = this.queryString.indexOf("SELECT") + "SELECT".length();
        int end = this.queryString.indexOf("FROM") - 1;
        
        this.selectString = this.queryString.substring(begin, end);
        this.selectString = this.selectString.trim();
        
        begin = this.queryString.indexOf("FROM") + "FROM".length();
        this.fromString = this.queryString.substring(begin);
        this.fromString = this.fromString.trim();
    }
}
